import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'

import HomePage from './components/HomePage.vue'
import ListPage from './components/ListPage.vue'
import DetailsPage from './components/DetailsPage.vue'

const router = createRouter({
  history:createWebHistory(),
  routes:[
    {
      path:'/home',
      component:HomePage
    },
    {
      path:'/list',
      component:ListPage
    },
    {
      path:'/details/:id',
      component:DetailsPage
    }
  ]
})

export default router
